package com.smallstep.apilimit.properties;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 李俊
 * @Description
 * @Date 2019/9/3 15:45
 */
public class ApiLimitGroupProperties {
    /**
     * 限制每秒请求数
     */
    private Integer limit;
    /**
     * 优先级
     */
    private Integer priority;
    /**
     * 路径匹配
     */
    List<ApiLimitUrlPatternProperties> urlPatterns = new ArrayList();
    /**
     * 头部匹配
     */
    private List<ApiLimitHeaderPatternProperties> headerPatterns = new ArrayList();

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getPriority() {
        return priority;
    }

    public void setPriority(Integer priority) {
        this.priority = priority;
    }

    public List<ApiLimitUrlPatternProperties> getUrlPatterns() {
        return urlPatterns;
    }

    public void setUrlPatterns(List<ApiLimitUrlPatternProperties> urlPatterns) {
        this.urlPatterns = urlPatterns;
    }

    public List<ApiLimitHeaderPatternProperties> getHeaderPatterns() {
        return headerPatterns;
    }

    public void setHeaderPatterns(List<ApiLimitHeaderPatternProperties> headerPatterns) {
        this.headerPatterns = headerPatterns;
    }
}
